From: Koen Vandeputte Date: Tue, 14 Oct 2025 10:25:25 +0000 (+0200) Subject: ath79: fix broken MikroTik upgrade X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=b1299c2fcf61d7baa2073ba7ff1d33b5ea28a51e;p=openwrt%2Fopenwrt.git ath79: fix broken MikroTik upgrade Fix a regression introduced by a recent commit. It looks like a copy/paste error. Add the missing line which defines the 'board' val as it does not exist otherwise in the case check. This fixes sysupgrade on ath79 MikroTik non-NOR boards. Fixes: 318f07c231 ("ath79: mikrotik: check RouterBOOT version matching sysupgrade image") Signed-off-by: Koen Vandeputte --- diff --git a/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh b/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh index 1ce42f7b79..629e7fd9b8 100644 --- a/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh +++ b/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh @@ -26,6 +26,8 @@ platform_check_image_mikrotik_nor() { } platform_check_image() { + local board=$(board_name) + case "$board" in mikrotik,routerboard-2011uias-2hnd|\ mikrotik,routerboard-493g|\